package com.studio701.carguard.service.imp;

import com.studio701.carguard.pojo.Report;
import com.studio701.carguard.mapper.ReportMapper;
import com.studio701.carguard.service.IReportService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xjc
 * @since 2022-04-08
 */
@Service
public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> implements IReportService {

    @Autowired
    ReportMapper reportMapper;

    @Override
    public List<Report> getReports(Integer id) {
        return reportMapper.getReports(id);
    }

    @Override
    public Report getRecentReport(Integer id) {
        return reportMapper.getRecentReport(id);
    }
}
